package com.xiaodeng.xdblogspringboot.pojo.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiaodeng.xdblogspringboot.anno.ApplicationState;
import lombok.Data;

import java.time.LocalDateTime;
@Data
public class ApplicationDTO {
    private Integer id;
    private Integer articleId; //文章ID，外键，关联到文章表
    private Integer applicantId; //申请人ID，外键，关联到用户表
    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private LocalDateTime applicationTime; //申请时间
    private Integer auditorId; //审核人ID，外键，关联到管理员表
    private LocalDateTime auditTime; //审核时间
    @ApplicationState
    private String auditStatus; //审核状态:待审核,审核成功,审核失败
    private String auditReason; //审核失败原因
    private String title; //审核失败原因
    private String username; //审核失败原因
    private String coverImg; //审核失败原因
    private String content; //审核失败原因
    private String audit; //审核失败原因
}
